# Contributor: Jonas <3426-spameier@users.gitlab.alpinelinux.org>
# Maintainer: Jonas <3426-spameier@users.gitlab.alpinelinux.org>
pkgname=py3-msldap
_pyname=msldap
pkgver=0.5.10
pkgrel=1
pkgdesc="Python library to play with MS LDAP"
url="https://github.com/skelsec/msldap"
arch="noarch"
license="MIT"
depends="
	py3-asn1crypto
	py3-asyauth
	py3-asysocks
	py3-minikerberos
	py3-prompt_toolkit
	py3-tqdm
	py3-unicrypto
	py3-wcwidth
	py3-winacl
	python3
	"
makedepends="
	py3-gpep517
	py3-wheel
	py3-setuptools
	"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/skelsec/msldap/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"
options="!check" # no tests provided

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" .dist/*.whl
}

sha512sums="
8b96a46d2b685dc30078c476bab75bcb925668784a2e7bf8980d174d7b0bffb0ff5bd7044bccd5f0b1f4a621d33d6f0cf41027f49979f4f13b466ba2012b82e5  py3-msldap-0.5.10.tar.gz
"
